package com.example.elderlycare.controller.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Builder;
import lombok.Data;

import java.util.Date;

public class EmployeeRequestBody {
    @Data
    public static class AddEmployeeRequestBody {
        private String name;
        private String number;
        private String phone;
        private Integer sex;
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date entryTime;
        private Integer departmentId;
        private Integer fatherId;
        private Integer cardTypeId;
        private Integer nurseId;
        private Integer userStatusId;
        private Integer positionId;
        private Integer educationId;
    }

    @Data
    public static class UpdateEmployeeRequestBody {
        private Integer id;
        private String name;
        private String number;
        private String phone;
        private Integer sex;
        @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
        private Date entryTime;
        private Integer departmentId;
        private Integer fatherId;
        private Integer cardTypeId;
        private Integer nurseId;
        private Integer userStatusId;
        private Integer positionId;
        private Integer educationId;
    }
}
